package cn.piesat.scanning.service.impl;

import cn.piesat.scanning.dao.DbDmsFlowInfoExecIdFlowIdDAO;
import cn.piesat.scanning.dto.DbDmsFlowInfoExecIdFlowIdDTO;
import cn.piesat.scanning.service.DbDmsFlowInfoExecIdFlowIdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zyp
 * @date 2021/5/28
 */
@Service
public class DbDmsFlowInfoExecIdFlowIdServiceImpl implements DbDmsFlowInfoExecIdFlowIdService {
    @Autowired
    private DbDmsFlowInfoExecIdFlowIdDAO dbDmsFlowInfoExecIdFlowIdDAO;

    @Override
    public List<DbDmsFlowInfoExecIdFlowIdDTO> findByFlowIdAndExecId(String flowId, String execId) {
        return dbDmsFlowInfoExecIdFlowIdDAO.findByFlowIdAndExecId(flowId,execId);
    }

    @Override
    public void saveAndFlush(DbDmsFlowInfoExecIdFlowIdDTO def) {
        dbDmsFlowInfoExecIdFlowIdDAO.saveAndFlush(def);
    }
}
